package com.thinkfit.jy.utils;

import com.blankj.utilcode.util.SPUtils;

public class SettingUtils {

    private static SettingUtils settingUtils;

    public static SettingUtils getInstance(){
        if(settingUtils == null){
            settingUtils = new SettingUtils();
        }
        return settingUtils;
    }


    private static final String EQUIPMENT_INFO = "equipment_info";

    /**
     * 保存设备参数
     * @param str
     */
    public void saveEquipmentInfo(String str){
        SPUtils.getInstance().put(EQUIPMENT_INFO,str);
    }

    /**
     * 获取保存的设备参数
     * @return
     */
    public String getEquipmentInfo(){
        return SPUtils.getInstance().getString(EQUIPMENT_INFO,"");
    }

}
